package com.java.simple.smallspring.context.event;

import com.java.simple.smallspring.context.ApplicationEvent;

/**
 * @author zhoujunlin
 * @date 2022年08月31日 15:24
 * @desc
 */
public class ApplicationContextEvent extends ApplicationEvent {


    /**
     * Constructs a prototypical Event.
     *
     * @param source The object on which the Event initially occurred.
     * @throws IllegalArgumentException if source is null.
     */
    public ApplicationContextEvent(Object source) {
        super(source);
    }

    public final ApplicationEvent getApplicationContext() {
        return (ApplicationEvent) getSource();
    }

}
